
import java.util.*;public class students
{
	public static void main(String[] args)
	{
		student[]a=new student[5];
		for(int i=0;i<a.length;i++)
		{
			System.out.println("请输入第"+(i+1)+"个同学的名字，学号，语数英成绩");
			Scanner b=new Scanner(System.in);
			String n=b.next();
			int d=b.nextInt();
			int c=b.nextInt();
			int m=b.nextInt();
			int e=b.nextInt();
			student k=new student();
			k.information(n,d,c,m,e);
			a[i]=k;
		}
		System.out.println("-------------");
	for(student k:a)
	{
		
		System.out.println(k.getname());
		System.out.println(k.total());
		System.out.println(k.average());
	}
	
		
	}
}
class student
{
	private String name;
	private int id;
	private int chinese,math,english;
	private int total;
	public void information(String a,int b,int c,int d,int e)
	{
		this.name=a;
		this.id=b;
		this.chinese=c;
		this.math=d;
		this.english=e;
	}
	public String getname()
	{
		return name;
	}
	public int total()
	{
		return total=chinese+math+english;
	}
	public int average()
	{
		return total/3;
	}
}
